package main

import (
	"math"
	"fmt"
)

type Vertexx struct {
	X,Y float64
}


func (v *Vertexx)Scale(f float64){
	v.X=v.X*f
	v.Y=v.Y*f
}

func (v *Vertexx) Abs() float64{
	return  math.Sqrt(v.X*v.X+v.Y*v.Y)
}

func main() {
	v:=&Vertexx{3,4}
	v.Scale(5)
	fmt.Println(v,v.Abs())
}

